import request from '@/utils/request'
import linq from 'linq'
export async function getAlfx(XXID,CJPC){
    //
    
    let res =  await request({
        url: `/Alfxs?$filter=XXID eq '${XXID}' and CJPC eq '${CJPC}'`,
        method: 'get',
      })
    return res.data.value;
    //   
}
export async function setAlfx(code,year){
  let res =  await request({
    url: `/setAlfx?code=${code}&year=${year}`,
    method: 'get',
  })
return res.data.value;
}
export async function setSaveAfter2019(code,year){
  let res =  await request({
    url: `/setSaveAfter2019?code=${code}&year=${year}`,
    method: 'get',
  })
return res.data.value;
}